{
  "properties" : { },
  "id" : "e9bf9f594c9f4a23a19bbeb94db44237",
  "script" : null,
  "groupId" : "fe43a82bf35d4dc8830b340876318d17",
  "name" : "删除设备控制",
  "createTime" : 1727071169536,
  "updateTime" : 1725444608059,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "delete",
  "method" : "POST",
  "parameters" : [ {
    "name" : "ids",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"ids\":[\"D5415126296909525284\"]\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": []\n}",
  "description" : null,
  "requestBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "ids",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "Array",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ {
        "name" : "",
        "value" : "D5415126296909525284",
        "description" : "",
        "required" : false,
        "dataType" : "String",
        "type" : null,
        "defaultValue" : null,
        "validateType" : "",
        "error" : "",
        "expression" : "",
        "children" : [ ]
      } ]
    } ]
  },
  "responseBodyDefinition" : null
}
================================
 import response;
 if(body.ids==null||body.ids.size()==0){
     return  response.json({
    "status": 500,
    "message": "删除失败",
    "data": {}});
 
 }
 return db.table('ndmp_net_device_command').where().in('id',body.ids).select();
    